package top.korori.sv.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel("作品数据")
@Getter
@Setter
public class SysSvWorkVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("作品id")
    @TableId(value = "work_id", type = IdType.AUTO)
    private Long workId;

    @ApiModelProperty("描述")
    private String desc;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("浏览量")
    private Long browse;

    @ApiModelProperty("封面地址")
    private String cover;

    @ApiModelProperty("可见权限（0 公开 1 仅自己）")
    private Integer per;


    @ApiModelProperty("发布用户id")
    private Long userId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


    @ApiModelProperty("喜欢")
    private Long like;

    @ApiModelProperty("收藏")
    private Long star;



}
